-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix blank square plugins icon when theia starts #7756
Conversation
I'm not sure about empty, maybe another placeholder? What if a plugin was removed in the meantime, would be there forever invisible tab? |
If plugin was removed, it's div containing the |
packages/plugin-ext/src/main/browser/view/plugin-view-registry.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Doron Nahari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work well for me 👍
The proposed behavior also aligns with vscode (they do not display a placeholder and no icon is present until the icon is properly loaded).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me on gitpod. Code also look fine to me.
@amiramw please merge |
Signed-off-by: Doron Nahari [email protected]
What it does
Fixes #7751
Purpose a css solution to this issue. because of the life cycle of plugins sync and load, the div of the contributed plugin is loaded before the icon class is ready causes a blank square until then.
My solution is to first create empty mask and when the plugin icon css apply it will override it.
Before: see gif in #7751
After:
How to test
Review checklist
Reminder for reviewers